/* Para Firefox */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Para Chrome, Safari y Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Para Firefox */
input[type="number"]::-webkit-clear-button {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}

.scrolling-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: calc(20% * 5);
}

/* Para ocultar la barra de desplazamiento */
.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.scrolling-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollmenu>.p-2 {
    width: 16%;
}

@media only screen and (max-width: 1200px) {
    .scrollmenu > .p-2 {
        width: 30%;
    }
}

/* @media only screen and (max-width: 600px) {
    .scrollmenu>.p-2 {
        width: 32%;
        margin: 0 7px;
    }
} */

div.scrollmenu {

    overflow: auto;
    white-space: nowrap;
}

div.p-2 {
    display: inline-block;
    /* color: white; */
    text-align: center;
    padding: 14px;
    text-decoration: none;
}

/* Para WebKit browsers */
div.scrollmenu::-webkit-scrollbar {
    width: 12px;
    /* Ancho de la barra vertical */
    height: 12px;
    /* Altura de la barra horizontal */
}

div.scrollmenu::-webkit-scrollbar-track {
    background-color: #F5F5F5;
    /* Color de fondo de la barra */
    border-radius: 10px;
    /* Redondear esquinas */
}

div.scrollmenu::-webkit-scrollbar-thumb {
    background-color: #888;
    /* Color del deslizador */
    border-radius: 10px;
    /* Redondear esquinas */
}

div.scrollmenu::-webkit-scrollbar-thumb:hover {
    background-color: #555;
    /* Color del deslizador al pasar el mouse */
}

/* Para Firefox */
div.scrollmenu {
    scrollbar-width: inherit;
    /* Puedes usar 'thin' o 'auto' o incluso 'none' para ocultarla */
    scrollbar-color: #888 #F5F5F5;
    /* Color del deslizador y color de fondo de la barra */
}

/* necesito que p-1 y p-3 tengan los mismos estilos que p-2 */
div.p-1 {
    display: inline-block;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}

div.p-3 {
    display: inline-block;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}

.food-name {
    white-space: normal;
    /* Permite que el texto se envuelva */
    width: 80px;
    /* Establece un ancho fijo para el contenedor. Puedes ajustar este valor según tus necesidades. */
    overflow: hidden;
    /* Asegura que el texto no se desborde fuera del contenedor */
}

.custom-control-label {
    display: flex;
    flex-direction: column;
    /* Alinea los elementos (imagen y texto) verticalmente */
    align-items: center;
    /* Centra los elementos horizontalmente */
    justify-content: center;
    /* Centra los elementos verticalmente */
}

.custom-control-label p {
    white-space: normal;
    width: auto;
    height: auto;
    overflow: visible;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    text-align: center;
    margin: 0;
    overflow: hidden;
    /* Asegúrate de que no haya márgenes adicionales que afecten el diseño */
}
.food-details {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Estilo de las imágenes dentro de la lista */
.custom-control-label img {
  width: 128px;
  height: 128px;
  border-radius: 50%; /* Agrega bordes redondeados para un aspecto más elegante */
  border: 2px solid #ddd; /* Agrega un borde alrededor de cada imagen */
  transition: transform 0.2s ease-in-out; /* Agrega una transición suave al hacer hover */
  object-fit: cover;
}

/* Efecto de escala al hacer hover sobre cada imagen */
.custom-control-label img:hover {
  transform: scale(1.1);
}